package com.shangxian.giveithome.entity.community;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class NoticeCenter implements Serializable {

    //评论id
    private Long id;
    //评论用户id
    private Long cuId;

    //文章id
    private Long issueId;

    //文章类型
    private String type;

    //文章内容
    private String articleContent;

    //评论内容
    private String commentContent;

    //评论时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;

    //评论用户名
    private String name;

    //评论用户头像
    private String path;

    // 评论阅读状态
    private Long state;


}
